﻿using Basic.FormModel.Column;
using Basic.FormModel.DB;
using Basic.FormModel.Model;

namespace Basic.FormDAL
{
    public interface ITableColumnDAL : IBasicDAL<DBTableColumn, long>
    {
        ColumnSort[] GetSorts ( long tableId, long groupId );
        long Add ( ColumnAdd data );
        long Add ( ColFullAdd data );
        int GetMaxSort ( long tableId, long groupId );
        void SetColSpan ( long id, int span );
        void SetColSpan ( KeyValuePair<long, int>[] span );
        void SetGroupId ( long id, long groupId );
        void SetSort ( KeyValuePair<long, int>[] sort );
        void SetSort ( ColumnSort sour, ColumnSort to );
        ColSet[] GetsColSet ( long[] ids );
        ColSet GetColSet ( long id );
    }
}